<template>
  <div id="app">
    <div id="nav">
      <router-link to="/home">Home</router-link>&nbsp;
      <router-link to="/userinfo"  >UserInfo</router-link>&nbsp;
      <a href="/cart">购物车</a>&nbsp;
      <a href="/login">登陆</a>&nbsp;
      <a  @click="testU">testU</a>
    </div>
    
    <router-view/>
  </div>
</template>
<script>
import Home from './views/Home.vue'

export default {
  
  data() {
    return {
      name: "mm",
      pass: "8888",
      okToken:null
    };
  },
  components:{

  },
  methods:{
    testU(){
      this.$store.commit('setCookieWithout')
    }
  }
}
</script>
<style lang="scss">
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
#nav {
  padding: 30px;
  a {
    font-weight: bold;
    color: #2c3e50;
    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
